import {
	RouteTypeEnum
} from "@/enums/route"
import {
	// ReportStatusEnum
	EventStatusMap,
	EventStatusEnum
} from "@/enums/event"
import {
	PathEnum
} from "../utils/path.config"
// 工作人员首页路由更新为:1.事件上报,2.我的待办,3.历史待办,4.已办结,5.事件跟踪(我的上报)
export const adminRoutes = [{
		key: PathEnum.report,
		icon: PathEnum.report,
		name: "事件上报",
		path: "/pages/report/report",
	},
	{
		key: PathEnum.await,
		icon: PathEnum.await,
		name: "待处理",
		path: "/pages/report/report",
	},
	{
		key: PathEnum.history,
		icon: PathEnum.history,
		name: "历史待办",
		path: "/pages/report/report",
	},
	{
		key: PathEnum.final,
		icon: PathEnum.final,
		name: "已办结",
		path: "/pages/report/report",
	},
	{
		key: PathEnum.follow,
		icon: PathEnum.follow,
		name: "事件跟踪",
		path: "/pages/report/report",
	},
	{
		key: PathEnum.rate,
		icon: PathEnum.rate,
		name: "事件评价",
		path: "/pages/rate/rate",
	},
]

export const userRoutes = [{
		key: PathEnum.report, // "report", // 唯一key
		name: "事件上报", // 路由名称
		path: "/pages/report/report", // 路由路径
		type: RouteTypeEnum.tabber, // 路由类别
	},
	{
		key: "follow",
		name: "跟踪",
		path: "/pages/follow/follow",
		type: RouteTypeEnum.tabber
	},
	{
		key: "rate",
		name: "评价",
		path: "/pages/rate/rate",
		type: RouteTypeEnum.tabber
	},
	// {
	// 	key: "my",
	// 	name: "我的",
	// 	path: "/pages/my/my",
	// 	type: RouteTypeEnum.tabber
	// }
]

export const processorRoutes = [{
		key: "await",
		name: "待接单",
		path: `/pages/report/list?status=${EventStatusEnum[EventStatusMap.processing]}`,
		type: RouteTypeEnum.tabber
	},
	{
		key: "doing",
		name: "处理中",
		path: `/pages/report/list?status=${EventStatusEnum[EventStatusMap.processing]}`,
		type: RouteTypeEnum.tabber
	},
	{
		key: "final",
		name: "已办结",
		path: `/pages/report/list?status=${EventStatusEnum[EventStatusMap.completed]}`,
		type: RouteTypeEnum.tabber
	},
	// {
	// 	key: "my",
	// 	name: "我的",
	// 	path: "/pages/my/my",
	// 	type: RouteTypeEnum.tabber
	// }
]